<%@ page contentType="text/html; charset=gb2312" pageEncoding="GBK"%>
<%@ page import="org.jbpm.JbpmContext"%>
<%@ page import="org.jbpm.db.TaskMgmtSession"%>
<%@ page import="org.jbpm.taskmgmt.exe.TaskInstance"%>
<%			String mTaskInstanceId = request.getParameter("taskInstanceId");
			String mTaskItemInstanceId = request.getParameter("taskItemInstanceId");
			JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
			TaskMgmtSession taskMgmtSession = jbpmContext.getTaskMgmtSession();
			TaskInstance taskInstance = taskMgmtSession.loadTaskInstance(Long
					.parseLong(mTaskInstanceId));
			long processInstanceId = taskInstance.getTaskMgmtInstance()
					.getProcessInstance().getId();
			String SignatureView = null;
			String DocumentView = null;
			Long ld = new Long(processInstanceId);
			String mRecordID = ld.toString();
			SignatureView = "SignatureCheckView.jsp?RecordID="
					+ mRecordID;
			DocumentView = "DocumentView.jsp?taskInstanceId="
					+ mTaskInstanceId + "&taskItemInstanceId="
					+ mTaskItemInstanceId+"&RecordID="+mRecordID;
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>iWebOfficeSign</title>
</head>
<frameset border="10" frameborder="0" FRAMESPACING="0" TOPMARGIN="0"
	LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" cols="50%,50%">
	<frame name="signature" scrolling="yes" src="<%=SignatureView%>"
		TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0"
		FRAMEBORDER="1" BORDER="1">
	<frame name="document" scrolling="yes" src="<%=DocumentView%>"
		marginwidth="0" marginheight="1" border=1 bordercolor="menu">
</frameset>

</html>
